Skip to content

lazy-load: _sdpa_single_block_bwd_dkdv & _sdpa_single_block_bwd_dq - #405

Open
LXW-github wants to merge 1 commit into
XPU-Forces:hw/950-perffrom
LXW-github:hw/950-perf
Open

lazy-load: _sdpa_single_block_bwd_dkdv & _sdpa_single_block_bwd_dq#405
LXW-github wants to merge 1 commit into
XPU-Forces:hw/950-perffrom
LXW-github:hw/950-perf

Conversation

@LXW-github

Copy link
Copy Markdown

lazy-load: _sdpa_single_block_bwd_dkdv & _sdpa_single_block_bwd_dq

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request optimizes the NPU backward kernels (_sdpa_single_block_bwd_dkdv and _sdpa_single_block_bwd_dq) in swa.py by separating block loads (such as loading Q_block_ptr, DO_block_ptr, and K_block_ptr into distinct variables for different operations) and applying the cv_pipeline_lazy_load compile hint to them. There are no review comments, so I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant